<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
Route::rule('admin$',function(){
   abort(404);
});

if( defined("route_on")  && route_on  ){

    Route::get('click', 'index/index/click');
    Route::get(':name/:id', 'index/index/read')->pattern(['id' => '\d+']);
    Route::get(':name/page_:page', 'index/index/list')->pattern(['page' => '\d+']);
    Route::get(':name/', 'index/index/list');
}





